/********************************************************************
*	MEF an XML UI framework
*	Filename:	MEFGroup.h
*	Author:		Mikael Eriksson
*
********************************************************************/

#if !defined(_CMEFGROUP_H)
#define _CMEFGROUP_H

#include "MEFComponent.h"
#include "MEFTree.h"

class CMEFPlugin;

class CMEFGroup : public CMEFComponent
{
public:
	CMEFGroup(CMEFPlugin* aPlugin);
	virtual ~CMEFGroup();

	//Inserted and sorted by Z order.
	//Ownership is NOT transferred
	void AddComponent(CMEFComponent* aComponent);

private:
	CMEFTree<CMEFComponent*>* iTree;
	CMEFTree<CMEFComponent*>::iterator iIt;
};

#endif //_CMEFGROUP_H